package com.lagou.task14;

import java.util.LinkedList;
import java.util.Queue;

public class QueueTest {
    public static void main(String[] args) {
        Queue queue = new LinkedList();
        System.out.println("queue = " + queue);
        for (int i = 1; i <= 5 ; i++) {
            queue.offer(11*i);
        }
        System.out.println("queue = " + queue);
        System.out.println(queue.peek());
        int sie  = queue.size();
        for (int i = 0; i < sie ; i++) {
            System.out.println("出队元素：" + queue.poll());

        }
    }
}
